<template>
  <div :class="[$style.wrapper,{[$style.wrapperWide]: tabletView}]">
    <ButtonPageLinkViewer :control="control" :links="control.links" :showWarning="true"></ButtonPageLinkViewer>

    <div v-if="!control.links || control.links.length === 0" :class="$style.placeholderText">
      <i class="el-icon-warning-outline"> 请添加链接项</i>
    </div>
  </div>
</template>

<script>
import ButtonPageLinkViewer from '@/common/components/buttonlink/ButtonPageLinkViewer';

export default {
  props: ['control', 'tabletView', "controlIndex"],

  components: {
    ButtonPageLinkViewer,
  },
}
</script>

<style lang="scss" module>
.wrapper {
}

.placeholderText {
  color: $warningYellow;
}
</style>
